package com.supplychainapi.model;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 销售订单
 *
 * @author:xiezhiwei
 * @email:xiezhiwei@niwodai.net
 * @date:2017-11-09
 */
@Table(name = "scm_tbsale")
public class ScmTbsale {


    @ApiModelProperty(value = "销售单GUID")
    @Id
    private String fsSaleGUID;

    @ApiModelProperty(value = "销售单号")
    private String fsSaleNo;

    @ApiModelProperty(value = "单据日期")
    private String fsBillDate;

    @ApiModelProperty(value = "单据种类;1=销售订单/8=POS销售单")
    private Short fiBillKind;

    @ApiModelProperty(value = "客户平台GUID")
    private String fsPGUID;

    @ApiModelProperty(value = "客户代码")
    private String fsCustId;

    @ApiModelProperty(value = "客户名称")
    private String fsCustName;

    @ApiModelProperty(value = "联系人")
    private String fsContact;

    @ApiModelProperty(value = "联系人手机")
    private String fsCellphoneCt;

    @ApiModelProperty(value = "销售方式;1=赊销/2=现销")
    private String fsSaleModeId;

    @ApiModelProperty(value = "交货方式;1=提货/2=送货/3=物流")
    private Short fiArrivalMode;

    @ApiModelProperty(value = "交货日期")
    private String fsArrivalDate;

    @ApiModelProperty(value = "交货地址")
    private String fsArrivalAddr;

    @ApiModelProperty(value = "收货人")
    private String fsReceiver;

    @ApiModelProperty(value = "收货人手机")
    private String fsCellphoneRr;

    @ApiModelProperty(value = "EDI订单编号")
    private String fsEDIOrderGUID;

    @ApiModelProperty(value = "EDI订单下单时间")
    private String fsEDIOrderDateTime;

    @ApiModelProperty(value = "EDI订单备注")
    private String fsEDIOrderNote;

    @ApiModelProperty(value = "部门")
    private String fsDepartmentId;

    @ApiModelProperty(value = "员工")
    private String fsStaffId;

    @ApiModelProperty(value = "折扣金额")
    private BigDecimal fdDiscountAmt;

    @ApiModelProperty(value = "销售金额")
    private BigDecimal fdSaleMoneyAmt;

    @ApiModelProperty(value = "销售税额")
    private BigDecimal fdSaleTaxAmt;

    @ApiModelProperty(value = "销售价税合计")
    private BigDecimal fdSaleTotAmt;

    @ApiModelProperty(value = "优惠率%")
    private BigDecimal fdBenefitRate;

    @ApiModelProperty(value = "优惠金额")
    private BigDecimal fdBenefitAmt;

    @ApiModelProperty(value = "销售总额")
    private BigDecimal fdSaleAmt;

    @ApiModelProperty(value = "单据状态;0未审核/1已审核")
    private Short fiBillStatus;

    @ApiModelProperty(value = "预计结算日期")
    private String fsSettleDate;

    @ApiModelProperty(value = "审核人")
    private String fsAuditUserId;

    @ApiModelProperty(value = "审核人名称")
    private String fsAuditUserName;

    @ApiModelProperty(value = "审核日期")
    private String fsAuditDate;

    @ApiModelProperty(value = "销售单备注")
    private String fsNote;

    @ApiModelProperty(value = "源单类型")
    private String fsBillSource;

    @ApiModelProperty(value = "收款标识;0否/1是")
    private Short fiReceiptFlag;

    @ApiModelProperty(value = "销售出库单 取用关闭标识;1=未取用/2=未取用手动关闭/3=已取用/4=已取用关闭")
    private Short fiSendOutClose;

    @ApiModelProperty(value = "创建日期时间")
    private Date fsCreateTime;

    @ApiModelProperty(value = "创建用户代码")
    private String fsCreateUserId;

    @ApiModelProperty(value = "创建用户名称")
    private String fsCreateUserName;

    @ApiModelProperty(value = "更新日期时间")
    private Date fsUpdateTime;

    @ApiModelProperty(value = "更新用户代码")
    private String fsUpdateUserId;

    @ApiModelProperty(value = "更新用户名称")
    private String fsUpdateUserName;

    @ApiModelProperty(value = "店铺GUID")
    private String fsShopGUID;

    public String getFsSaleGUID() {
        return fsSaleGUID;
    }

    public void setFsSaleGUID(String fsSaleGUID) {
        this.fsSaleGUID = fsSaleGUID == null ? null : fsSaleGUID.trim();
    }

    public String getFsSaleNo() {
        return fsSaleNo;
    }

    public void setFsSaleNo(String fsSaleNo) {
        this.fsSaleNo = fsSaleNo == null ? null : fsSaleNo.trim();
    }

    public String getFsBillDate() {
        return fsBillDate;
    }

    public void setFsBillDate(String fsBillDate) {
        this.fsBillDate = fsBillDate == null ? null : fsBillDate.trim();
    }

    public Short getFiBillKind() {
        return fiBillKind;
    }

    public void setFiBillKind(Short fiBillKind) {
        this.fiBillKind = fiBillKind;
    }

    public String getFsPGUID() {
        return fsPGUID;
    }

    public void setFsPGUID(String fsPGUID) {
        this.fsPGUID = fsPGUID == null ? null : fsPGUID.trim();
    }

    public String getFsCustId() {
        return fsCustId;
    }

    public void setFsCustId(String fsCustId) {
        this.fsCustId = fsCustId == null ? null : fsCustId.trim();
    }

    public String getFsCustName() {
        return fsCustName;
    }

    public void setFsCustName(String fsCustName) {
        this.fsCustName = fsCustName == null ? null : fsCustName.trim();
    }

    public String getFsContact() {
        return fsContact;
    }

    public void setFsContact(String fsContact) {
        this.fsContact = fsContact == null ? null : fsContact.trim();
    }

    public String getFsCellphoneCt() {
        return fsCellphoneCt;
    }

    public void setFsCellphoneCt(String fsCellphoneCt) {
        this.fsCellphoneCt = fsCellphoneCt == null ? null : fsCellphoneCt.trim();
    }

    public String getFsSaleModeId() {
        return fsSaleModeId;
    }

    public void setFsSaleModeId(String fsSaleModeId) {
        this.fsSaleModeId = fsSaleModeId == null ? null : fsSaleModeId.trim();
    }

    public Short getFiArrivalMode() {
        return fiArrivalMode;
    }

    public void setFiArrivalMode(Short fiArrivalMode) {
        this.fiArrivalMode = fiArrivalMode;
    }

    public String getFsArrivalDate() {
        return fsArrivalDate;
    }

    public void setFsArrivalDate(String fsArrivalDate) {
        this.fsArrivalDate = fsArrivalDate == null ? null : fsArrivalDate.trim();
    }

    public String getFsArrivalAddr() {
        return fsArrivalAddr;
    }

    public void setFsArrivalAddr(String fsArrivalAddr) {
        this.fsArrivalAddr = fsArrivalAddr == null ? null : fsArrivalAddr.trim();
    }

    public String getFsReceiver() {
        return fsReceiver;
    }

    public void setFsReceiver(String fsReceiver) {
        this.fsReceiver = fsReceiver == null ? null : fsReceiver.trim();
    }

    public String getFsCellphoneRr() {
        return fsCellphoneRr;
    }

    public void setFsCellphoneRr(String fsCellphoneRr) {
        this.fsCellphoneRr = fsCellphoneRr == null ? null : fsCellphoneRr.trim();
    }

    public String getFsEDIOrderGUID() {
        return fsEDIOrderGUID;
    }

    public void setFsEDIOrderGUID(String fsEDIOrderGUID) {
        this.fsEDIOrderGUID = fsEDIOrderGUID == null ? null : fsEDIOrderGUID.trim();
    }

    public String getFsEDIOrderDateTime() {
        return fsEDIOrderDateTime;
    }

    public void setFsEDIOrderDateTime(String fsEDIOrderDateTime) {
        this.fsEDIOrderDateTime = fsEDIOrderDateTime == null ? null : fsEDIOrderDateTime.trim();
    }

    public String getFsEDIOrderNote() {
        return fsEDIOrderNote;
    }

    public void setFsEDIOrderNote(String fsEDIOrderNote) {
        this.fsEDIOrderNote = fsEDIOrderNote == null ? null : fsEDIOrderNote.trim();
    }

    public String getFsDepartmentId() {
        return fsDepartmentId;
    }

    public void setFsDepartmentId(String fsDepartmentId) {
        this.fsDepartmentId = fsDepartmentId == null ? null : fsDepartmentId.trim();
    }

    public String getFsStaffId() {
        return fsStaffId;
    }

    public void setFsStaffId(String fsStaffId) {
        this.fsStaffId = fsStaffId == null ? null : fsStaffId.trim();
    }

    public BigDecimal getFdDiscountAmt() {
        return fdDiscountAmt;
    }

    public void setFdDiscountAmt(BigDecimal fdDiscountAmt) {
        this.fdDiscountAmt = fdDiscountAmt;
    }

    public BigDecimal getFdSaleMoneyAmt() {
        return fdSaleMoneyAmt;
    }

    public void setFdSaleMoneyAmt(BigDecimal fdSaleMoneyAmt) {
        this.fdSaleMoneyAmt = fdSaleMoneyAmt;
    }

    public BigDecimal getFdSaleTaxAmt() {
        return fdSaleTaxAmt;
    }

    public void setFdSaleTaxAmt(BigDecimal fdSaleTaxAmt) {
        this.fdSaleTaxAmt = fdSaleTaxAmt;
    }

    public BigDecimal getFdSaleTotAmt() {
        return fdSaleTotAmt;
    }

    public void setFdSaleTotAmt(BigDecimal fdSaleTotAmt) {
        this.fdSaleTotAmt = fdSaleTotAmt;
    }

    public BigDecimal getFdBenefitRate() {
        return fdBenefitRate;
    }

    public void setFdBenefitRate(BigDecimal fdBenefitRate) {
        this.fdBenefitRate = fdBenefitRate;
    }

    public BigDecimal getFdBenefitAmt() {
        return fdBenefitAmt;
    }

    public void setFdBenefitAmt(BigDecimal fdBenefitAmt) {
        this.fdBenefitAmt = fdBenefitAmt;
    }

    public BigDecimal getFdSaleAmt() {
        return fdSaleAmt;
    }

    public void setFdSaleAmt(BigDecimal fdSaleAmt) {
        this.fdSaleAmt = fdSaleAmt;
    }

    public Short getFiBillStatus() {
        return fiBillStatus;
    }

    public void setFiBillStatus(Short fiBillStatus) {
        this.fiBillStatus = fiBillStatus;
    }

    public String getFsSettleDate() {
        return fsSettleDate;
    }

    public void setFsSettleDate(String fsSettleDate) {
        this.fsSettleDate = fsSettleDate == null ? null : fsSettleDate.trim();
    }

    public String getFsAuditUserId() {
        return fsAuditUserId;
    }

    public void setFsAuditUserId(String fsAuditUserId) {
        this.fsAuditUserId = fsAuditUserId == null ? null : fsAuditUserId.trim();
    }

    public String getFsAuditUserName() {
        return fsAuditUserName;
    }

    public void setFsAuditUserName(String fsAuditUserName) {
        this.fsAuditUserName = fsAuditUserName == null ? null : fsAuditUserName.trim();
    }

    public String getFsAuditDate() {
        return fsAuditDate;
    }

    public void setFsAuditDate(String fsAuditDate) {
        this.fsAuditDate = fsAuditDate == null ? null : fsAuditDate.trim();
    }

    public String getFsNote() {
        return fsNote;
    }

    public void setFsNote(String fsNote) {
        this.fsNote = fsNote == null ? null : fsNote.trim();
    }

    public String getFsBillSource() {
        return fsBillSource;
    }

    public void setFsBillSource(String fsBillSource) {
        this.fsBillSource = fsBillSource == null ? null : fsBillSource.trim();
    }

    public Short getFiReceiptFlag() {
        return fiReceiptFlag;
    }

    public void setFiReceiptFlag(Short fiReceiptFlag) {
        this.fiReceiptFlag = fiReceiptFlag;
    }

    public Short getFiSendOutClose() {
        return fiSendOutClose;
    }

    public void setFiSendOutClose(Short fiSendOutClose) {
        this.fiSendOutClose = fiSendOutClose;
    }

    public Date getFsCreateTime() {
        return fsCreateTime;
    }

    public void setFsCreateTime(Date fsCreateTime) {
        this.fsCreateTime = fsCreateTime;
    }

    public String getFsCreateUserId() {
        return fsCreateUserId;
    }

    public void setFsCreateUserId(String fsCreateUserId) {
        this.fsCreateUserId = fsCreateUserId == null ? null : fsCreateUserId.trim();
    }

    public String getFsCreateUserName() {
        return fsCreateUserName;
    }

    public void setFsCreateUserName(String fsCreateUserName) {
        this.fsCreateUserName = fsCreateUserName == null ? null : fsCreateUserName.trim();
    }

    public Date getFsUpdateTime() {
        return fsUpdateTime;
    }

    public void setFsUpdateTime(Date fsUpdateTime) {
        this.fsUpdateTime = fsUpdateTime;
    }

    public String getFsUpdateUserId() {
        return fsUpdateUserId;
    }

    public void setFsUpdateUserId(String fsUpdateUserId) {
        this.fsUpdateUserId = fsUpdateUserId == null ? null : fsUpdateUserId.trim();
    }

    public String getFsUpdateUserName() {
        return fsUpdateUserName;
    }

    public void setFsUpdateUserName(String fsUpdateUserName) {
        this.fsUpdateUserName = fsUpdateUserName == null ? null : fsUpdateUserName.trim();
    }

    public String getFsShopGUID() {
        return fsShopGUID;
    }

    public void setFsShopGUID(String fsShopGUID) {
        this.fsShopGUID = fsShopGUID == null ? null : fsShopGUID.trim();
    }
}